package com.vmj.heap;

import com.vmj.classfile.entity.constantinfo.ConstantMethodRefInfo;

/**
 * Created by yangshoujun on 2017/8/26 下午2:22.
 */
public class MemberRef extends SymRef {

    private String name;
    private String descriptor;

    public void copyMemberRefInfo(ConstantMethodRefInfo refInfo) {
        this.setClassName(refInfo.getClassName());
        String[] nameAndType = refInfo.getNameAndDescriptor();
        this.setName(nameAndType[0]);
        this.setDescriptor(nameAndType[1]);
    }

    public String getName() {
        return name;
    }

    public String getDescriptor() {
        return descriptor;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescriptor(String descriptor) {
        this.descriptor = descriptor;
    }
}
